package com.qbw.app.model;

import java.util.List;

/**
 * @author QBW
 * @date 2019/8/29
 */
public abstract class BaseResponseList<DATA> extends BaseModel {

    private List<DATA> data;

    public List<DATA> getData() {
        return data;
    }

    public void setData(List<DATA> data) {
        this.data = data;
    }

    public int size() {
        return isEmpty() ? 0 : data.size();
    }

    public boolean isEmpty() {
        return data == null || data.isEmpty();
    }
}
